package service.impl;

import java.util.List;

import pojo.Admin;
import pojo.Food;
import service.FoodManager;
import dao.FoodsDao;
import dao.impl.FoodsDaoImpl;

public class FoodManagerImpl implements FoodManager {
	private FoodsDao foodsDao;
	
	public FoodManagerImpl(){
		foodsDao = new FoodsDaoImpl();
	}

	@Override
	public List<Food> findAll() {
		return foodsDao.findAll();
	}

	@Override
	public List<Food> findByCid(String type) {
		return foodsDao.findByCid(type);
	}

	@Override
	public List<Food> find(String m_id, String type) {
		return foodsDao.find(m_id, type);
	}

	@Override
	public List<Food> find(int current, int pageSize, String m_id, String type) {
		return foodsDao.find(current, pageSize, m_id, type);
	}

	@Override
	public int getCount(String m_id, String type) {
		return foodsDao.getCount(m_id, type);
	}
}
